//
// Created by Castle on 2025/10/22.
//

using namespace std;
#include <iostream>

int main() {
    int scores [10];
    scores[0] = 10;
    scores[1] = 20;
    scores[2] = 30;

    cout << " scores[0] : " << scores[0] << endl;

    for (size_t i{0};i < 10;i++) {
        scores[i] = i * 10;
    }

    // Print the data out
    for (size_t i{0}; i < 10; i++) {
        cout << i << " : " << scores[i] << endl;
    }

    double salaries[5] {1.2,34.34,45.1,23.1,23.7};
    for (size_t i{0}; i < 5; i++) {
        cout << i << " : " << salaries[i] << endl;
    }

    cout << " salaries size: " << size(salaries) << endl;


    // Print data out
    for (size_t i{0};i < size(salaries);++i) {
        cout << i << " : " << salaries[i] << endl;
    }

    for (auto salary : salaries) {
        cout << salary << endl;
    }

    // Arrays of characters
    char message [5] {'h','e','l','l','o'};

    cout << " message: " ;
    for (auto c : message) {
        cout << c;
    }
    cout << endl;
    cout << "size: " << size(message) << endl;

    cout << "Modify array data: " << endl;
    message[1] = 's';
    for (auto c : message) {
        cout << c;
    }




    return 0;
}